/*
 * @Author: 大D
 * @email: 857216393@qq.com
 * @Date: 2024-01-31 10:38:03
 * @Description:获取用户ip的接口
 */
import http from '@/apis/request/http';
import type { IIp, IPagination } from './type';
import type { Res } from './type';
export const getIp = (): Promise<Res> => {
  return http<Res<IIp>>({
    url: '/ip/ip',
    method: 'get'
  });
};
export const getAccessList = (params?: IPagination): Promise<Res> => {
  return http<Res<IIp>>({
    url: '/ip/accessList',
    method: 'get',
    data: params
  });
};
